package intjavatorpedo.client;

import java.awt.Image;
import java.io.File;
import java.io.IOException;

import javax.imageio.ImageIO;

public final class ImageRepo {
	public static Image normalCell;
	public static Image myShipNotBombed;
	public static Image myNotShipBombed;
	public static Image myShipBombed;
	
	public static Image opponentSuccessful;
	public static Image opponentUnsuccessful;
	public static Image opponentSank;
	static {
		try {
			ImageRepo.normalCell = ImageIO.read(new File("resources/normalCell.png"));
			ImageRepo.myShipNotBombed = ImageIO.read(new File("resources/myShipNotBombed.png"));
			ImageRepo.myNotShipBombed = ImageIO.read(new File("resources/myNotShipBombed.png"));
			ImageRepo.myShipBombed = ImageIO.read(new File("resources/myShipBombed.png"));
			
			ImageRepo.opponentSuccessful = ImageIO.read(new File("resources/opponentSuccessful.png"));
			ImageRepo.opponentUnsuccessful = ImageIO.read(new File("resources/opponentUnsuccessful.png"));
			ImageRepo.opponentSank = ImageIO.read(new File("resources/opponentSank.png"));
		} catch (IOException e) {
			e.printStackTrace();
		}
	}
}
